class MoreFatDataOption {
  final int sex;
  final int height;
  final double weight;
  final double bfr;
  final double rom;
  final double pp;

  MoreFatDataOption(
      {required this.sex,
      required this.height,
      required this.weight,
      required this.bfr,
      required this.rom,
      required this.pp});

  Map<String, dynamic> toMap() {
    return {
      'sex': this.sex,
      'height': this.height,
      'weight': this.weight,
      'bfr': this.bfr,
      'rom': this.rom,
      'pp': this.pp,
    };
  }

  factory MoreFatDataOption.fromMap(Map<String, dynamic> map) {
    return MoreFatDataOption(
      sex: map['sex'] as int,
      height: map['height'] as int,
      weight: map['weight'] as double,
      bfr: map['bfr'] as double,
      rom: map['rom'] as double,
      pp: map['pp'] as double,
    );
  }
}
